package com.lottery.entity;

import java.io.Serializable;

//登录信息表
public class LoginInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7167176331073790924L;

	// 用户 id
	private int userId;

	// 用户标示
	private String userMark;

	// 登录类型
	private int loginType;

	// 登录下次请求验证
	private String token;

	private String hostAddr;

	// token时效性,为0表示永久有效
	private int expire;

	private String strtime;

	private int onlineNum;

	// 登录时间戳
	private long loginTime;

	//用户所属渠道商
	private  String agencyMark;

	public String getAgencyMark() {
		return agencyMark;
	}

	public void setAgencyMark(String agencyMark) {
		this.agencyMark = agencyMark;
	}

	public LoginInfo() {

	}

	public LoginInfo(int userId, String userMark, int loginType, String token, int expire, long loginTime) {
		super();
		this.userId = userId;
		this.userMark = userMark;
		this.loginType = loginType;
		this.token = token;
		this.expire = expire;
		this.loginTime = loginTime;

	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserMark() {
		return userMark;
	}

	public void setUserMark(String userMark) {
		this.userMark = userMark;
	}

	public int getLoginType() {
		return loginType;
	}

	public void setLoginType(int loginType) {
		this.loginType = loginType;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getHostAddr() {
		return hostAddr;
	}

	public void setHostAddr(String hostAddr) {
		this.hostAddr = hostAddr;
	}

	public int getExpire() {
		return expire;
	}

	public void setExpire(int expire) {
		this.expire = expire;
	}

	public long getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(long loginTime) {
		this.loginTime = loginTime;
	}

	public String getStrtime() {
		return strtime;
	}

	public void setStrtime(String strtime) {
		this.strtime = strtime;
	}

	public int getOnlineNum() {
		return onlineNum;
	}

	public void setOnlineNum(int onlineNum) {
		this.onlineNum = onlineNum;
	}

	@Override
	public String toString() {
		return "login_info [userId=" + userId + ", userMark=" + userMark + ", loginType=" + loginType + ", token="
				+ token + ", expire=" + expire + ", loginTime=" + loginTime + "]";
	}

}
